package cn.ronghuanet.course.domain;

import cn.ronghuanet.base.domain.BaseDomain;
import cn.ronghuanet.org.domain.Department;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

//课程目录 t_course_type
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("课程类型")
public class CourseType extends BaseDomain {
    @ApiModelProperty("创建时间")
    private Date createTime=new Date();
    @ApiModelProperty("修改时间")
    private Date updateTime=new Date();
    @ApiModelProperty("类型名")
    private String name;
    @ApiModelProperty("父ID")
    private Long parentId;
    @ApiModelProperty("图标")
    private String logo;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("索引排序")
    private Integer sortIndex;
    @ApiModelProperty("课程类型路径")
    private String dirPath;
    @ApiModelProperty("课程数量")
    private Integer totalCount;
    @ApiModelProperty("父课程对象")
    private CourseType parent;
    @ApiModelProperty("子部门集合")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)//空就不要
    private List<CourseType> children=new ArrayList<CourseType>();
}
